package com.example.hxds.snm.db.pojo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

@Data
@Document(collection = "message")
public class MessageEntity implements Serializable {
    @Id
    private String _id;

    @Indexed(unique = true)
    private String uuid;

    @Indexed
    private Long senderId;

    private String senderIdentity;

    private String senderPhoto = "https://hxds-1321910932.cos.ap-nanjing.myqcloud.com//System.jpg?q-sign-algorithm=sha1&q-ak=AKIDTigtguWTP6zmC1J5N1FmB1F8ZA-V-SrmDE1ZoUkS4VDLHJFf0MOFo7KmazAS9Vz3&q-sign-time=1712045765;1712049365&q-key-time=1712045765;1712049365&q-header-list=&q-url-param-list=&q-signature=18840daa49b8ad28da878c20c346a933bcc65bf6&x-cos-security-token=kwZio6cBU2l8inQNIkbzEF5ll5uVsbmab903702bc2dc737c31145ce8b6e17d12TteBJQYeNLt-h_G0RZve3ZmePp6zm-5j8pBsBQ7O0ZIdYINN6m22NqeR6ByU_LFR1PINDOPt85V_E_GQuFszsjPfUlRaEnSeVVRrAsGzs-Oc7PSs19bNqqFa57zRDJCoStNUv6ANpsge7Q2k3jsI1UYArUkrMWxAL_LjDa_cW-NZk449n8KPvqL2_y5Jkn8v";

    private String senderName;

    private String msg;

    @Indexed
    private Date sendTime;
}
